.news {
  width: 95%;
  margin: auto;
}

.news > ul {
  display: flex;
  justify-content: left;
  flex-wrap: wrap;
}

.news > ul > li > div > img {
  width: 100%;
}
.clearfix:after {
  content: "";
  display: block;
  clear: both;
}
.news > ul > li > div p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 960px) {
  .news > ul > li {
    width: 24%;
    margin: 20px 1.24vw 0 0;
    height: 360px;
  }
  .news > ul > li:nth-child(4n + 4) {
    margin-right: 0px;
  }
  .news > ul > li > div h2 {
    display: none;
  }

  .news > ul > li > div {
    background-color: black;
    overflow: hidden;
    z-index: 16;
  }

  /* img区域 */
  .news > ul > li > div > img {
    height: 260px;
  }

  /* 文字tit区域  */
  .news > ul > li > div p {
    color: white;
    font-weight: 600px;
    font-size: 18px;
    margin: 20px 10px;
  }

  /* 文字日期时间区域 */
  .news > ul > li > div h2 {
    font-size: 16px;
    font-weight: 500;
  }

  .news > ul > li > div h2 span {
    font-size: 35px;
    font-weight: 700;
    position: relative;
    top: 14px;
    border-bottom: 1.5px solid black;
    padding: 20px 6px 12px 0px;
  }

  /* 伪类区域 */
  .news > ul > li:hover h2 {
    display: block;
    font-weight: 600;
  }

  .news > ul > li:hover {
    position: relative;
  }

  .news > ul > li > div:hover {
    box-sizing: border-box;
    background-color: white;
    position: absolute;
    width: 100%;
    padding: 4%;
    box-shadow: 0px 2px 20px rgb(19, 11, 11);
  }

  .news > ul > li:hover p {
    white-space: normal;
    color: black;
    margin: 0;
    padding: 40px 0px 20px 0px;
    position: relative;
    z-index: 16;
  }
}

@media (max-width: 960px) {
  .news {
    padding-top: 10vh;
  }
  .news > ul > li:nth-child(2n + 2) {
    margin-right: 0px;
  }
  .news > ul > li {
    width: 44vw;
    margin: 2vw 4.5vw 0 0;
    box-shadow: 0 0 1vw rgb(19, 11, 11);
    background-color: rgb(255, 255, 255);
  }
  .news > ul > li > div p {
    color: rgb(12, 12, 12);
  }

  /* img区域 */
  .news > ul > li > div > img {
    height: 30vw;
  }

  /* 文字tit区域 */
  .news > ul > li > div p {
    color: black;
    font-weight: 700;
    font-size: 15px;
    margin: 20px 5px;
    height: 40px;
    white-space: normal;
  }

  /* 文字日期时间区域 */
  .news > ul > li > div h2 {
    font-size: 12px;
    font-weight: 500;
    margin-left: 5px;
  }

  .news > ul > li > div h2 span {
    font-size: 20px;
    font-weight: 700;
    position: relative;
    top: 3px;
    border-bottom: 1.5px solid black;
    padding: 20px 6px 6px 0px;
  }
}

/* 分页按钮 */
.btnbox > div {
  padding-top: 60px;
  padding-bottom: 60px;
  width: 320px;
  margin: auto;
  display: flex;
  justify-content: space-between;
}

.btnbox > div button {
  width: 42px;
  height: 42px;
  outline: none;
  border-radius: 5px;
  border: 1px rgb(63, 43, 43) solid;
  background-color: transparent;
  font-size: 16px;
  cursor: pointer;
}

.btnbox > div > div > button,
.btnbox > div > div > input {
  box-sizing: border-box;
  width: 50px;
  height: 42px;
}

.btnbox > div > div > button {
  box-sizing: border-box;
  border-radius: 0;
  background-color: rgb(207, 65, 22);
  color: aliceblue;
  border: 1px rgb(86, 87, 92) solid;
  position: relative;
  top: 1px;
  z-index: 1;
  cursor: pointer;
}

.btnbox > div > div > input {
  border: 1px rgb(143, 140, 140) solid;
  border-right: none;
  outline: none;
  text-align: center;
  font-size: 16px;
}
.btnbox > div .cur {
  background-color: rgb(207, 65, 22);
  color: aliceblue;
}
.btnbox > div > button:hover {
  background-color: rgb(207, 65, 22);
  color: aliceblue;
}
